﻿using Payroll.Biz.Legacy.DAL;
using Payroll.Biz.Legacy.Exceptions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Payroll.Biz.Legacy.Services
{
    public class AbstractService
    {
        protected IPayrollDatabase Database { get; private set; }

        public AbstractService(IPayrollDatabase database)
        {
            Database = database;
        }

        protected static ServiceException CreateServiceException(string message)
        {
            return new ServiceException(message);
        }

        protected static ServiceException CreateServiceException(string message, Exception innerException)
        {
            return new ServiceException(message, innerException);
        }
    }
}
